<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="description" content="Free Responsive Html5 Templates">
    <meta name="author" content="">
	
    <title>招聘会</title>
	
    <!-- Bootstrap Core CSS -->
    <link rel="stylesheet" href="css/bootstrap.min.css"  type="text/css">
	
	<!-- Owl Carousel Assets -->
    <link href="owl-carousel/owl.carousel.css" rel="stylesheet">
    <!-- <link href="owl-carousel/owl.theme.css" rel="stylesheet"> -->
	
	<!-- Custom CSS -->
    <link rel="stylesheet" href="css/style.css">
	 <link href="css/bootstrap-datetimepicker.min.css" rel="stylesheet" media="screen">
	
	<!-- Custom Fonts -->
    <link rel="stylesheet" href="font-awesome-4.4.0/css/font-awesome.min.css"  type="text/css">
	
	<!-- jQuery and Modernizr-->
	<script src="js/jquery-2.1.1.js"></script>
	
	<!-- Core JavaScript Files -->  	 
    <script src="js/bootstrap.min.js"></script>
	
	<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="js/html5shiv.js"></script>
        <script src="js/respond.min.js"></script>
    <![endif]-->
    
     <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
     <script type="text/javascript">
     
     
     
     </script>
    
    
    
</head>

<script type="text/javascript">
	
	$(function(){
		
		$(".fenlei").click(function(){
			
			var v = $(this).text();
			$("#comCity").prop("value",v);
			console.log($("#comCity").val());
			console.log(v);
			$.ajax({
				url:"job_fair3/"+v,
				type:"get",
				contentType:"text/html;charset=utf-8",
				success:function(data){
					console.log(data);
					var str = "";
					$.each(data,function(index, element){
						console.log(element.recName);
						str += "<article ><div class='entry-header'><h3 class='entry-title'><a href='job_fair2/"+element.recName+"'>" + element.recName +"</a></h3><span><i class='fa fa-calendar'></i>举办时间："+element.startTime+"</span></div><div class='post-thumbnail-wrap'><a href='single.html'><img src='images/4.jpg' /></a></div><div class='entry-content'><p>报名截止时间："+element.startTime+"</p></div></article>"
						
					})
					$("#div1").html(str);
					$("#comCity").prop("value",data.length);
					console.log($("#comCity").val());
				}
			})
			
		})
		
	})


</script>

<body class="archive-page">
<header>
	<!--Top-->
	<nav id="top">
		<div class="container">
			<div class="row">
				<div class="col-md-6">
					<strong><h5>欢迎！</h5></strong>
				</div>
				<div class="col-md-6">
					<ul class="list-inline top-link link">
						<li><a href="index.html"><i class="fa fa-home"></i> Home</a></li>
						<li><a href="contact.html"><i class="fa fa-comments"></i> Contact</a></li>
						<li><a href="#"><i class="fa fa-question-circle"></i> FAQ</a></li>
					</ul>
				</div>
			</div>
		</div>
	</nav>
</header>
	<!--Navigation-->
    <nav id="menu" class="navbar">
		<div class="collapse navbar-collapse navbar-ex1-collapse">
			<ul class="nav navbar-nav">
				<li><a href="index.html">首页</a></li>
				<li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">账号 <i class="fa fa-arrow-circle-o-down"></i></a>
					<div class="dropdown-menu">
						<div class="dropdown-inner">
							<ul class="list-unstyled">
								<li><a href="#">Login</a></li>
								<li><a href="#">Register</a></li>
							</ul>
						</div>
					</div>
				</li>
				<li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">招聘信息 <i class="fa fa-arrow-circle-o-down"></i></a>
					<div class="dropdown-menu">
						<div class="dropdown-inner">
							<ul class="list-unstyled">
								<li><a href="archive.html">Text 201</a></li>
								<li><a href="archive.html">Text 202</a></li>
								<li><a href="archive.html">Text 203</a></li>
								<li><a href="archive.html">Text 204</a></li>
								<li><a href="archive.html">Text 205</a></li>
							</ul>
						</div> 
					</div>
				</li>
				<li class="dropdown"><a href="job_fair2.html" class="dropdown-toggle" data-toggle="dropdown">招聘会 <i class="fa fa-arrow-circle-o-down"></i></a>
					<div class="dropdown-menu" style="margin-left: 0px;">
						<div class="dropdown-inner">
							<ul class="list-unstyled">
								<li><a href="archive.html">招聘会 No.1</a></li>
								<li><a href="archive.html">招聘会 No.2</a></li>
								<li><a href="archive.html">招聘会 No.3</a></li>
								<li><a href="archive.html">招聘会 No.4</a></li>
								<li><a href="archive.html">招聘会 No.5</a></li>
							</ul>
							
						</div>
					</div>
				</li>
			
				<li><a href="contact.html"><i class="fa fa-envelope"></i> 联系我们</a></li>
			</ul>
			<div class="col-sm-3 col-md-3 navbar-right">
				<form class="navbar-form" role="search">
					<div class="input-group">
						<input type="text" class="form-control" placeholder="Search" name="srch-term" id="srch-term">
						<div class="input-group-btn">
							<button class="btn btn-default" type="submit"><i class="glyphicon glyphicon-search"></i></button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</nav>
	
	
	<!-- /////////////////////////////////////////Content -->
	
	

	<div id="page-content" class="index-page">
		<div class="clearfix no-gutter">
			<div id="main-content" class="col-md-9 fix-right">
				<div class="tag-title">
					<h2><i class="fa fa-tag"></i>招聘会</h2>
				</div>
				<div class="gutter-8px">
					<div class="col-md-6" id="div1" style="float:none">
					<c:set value="${recruitment}" var="rec"></c:set>
					
					<c:forEach items="${recruitment}" var="r">
						<article  >
							<div class="entry-header">
								<h3 class="entry-title"><a href="job_fair2/${r.recName}">${r.recName}</a></h3>
								<span><i class="fa fa-calendar"></i>举办时间：${r.startTime}</span>
							</div>
							<div class="post-thumbnail-wrap"><a href="single.html"><img src="images/招聘会logo.jpg" /></a></div>
							<div class="entry-content">
								<p>报名截止时间：${r.applyTime}</p>
							</div>
						</article>
						</c:forEach>	
								
					</div>
					
				</div>
			</div>
			<div id="sidebar" class="col-md-3 fix-left">
				
				
				<!---- Start Widget ---->
				<div class="widget wid-tags">
					<div class="heading"><h4>地区分类</h4></div>
					<div class="content">
						<a class="fenlei" href="#">厦门</a>
						<a class="fenlei" href="#">深圳</a>
						<a class="fenlei" href="#">北京</a>
						<a class="fenlei" href="#">上海</a>
						<a class="fenlei" href="#">福州</a>
						<input type="hidden" name="comCity" id="comCity" value="">
					</div>
				</div>
				
				<!---- Start Widget ---->
				<div class="widget wid-categoty">
					<div class="heading"><h4>召开时间</h4></div>
					<div class="content">
						<select class="col-md-12">
							<option>三天内</option>
							<option>七天内</option>
							<option>十五天内</option>
						</select>
					</div>
				</div>
				<!---- Start Widget ---->
				<div class="widget wid-calendar">
					<div class="heading"><h4>日期</h4></div>
					<div class="content">
						<center><form action="" role="form">        
							<div class="">
								<div class="input-group date form_date" data-date="" data-date-format="dd MM yyyy" data-link-field="dtp_input2" data-link-format="yyyy-mm-dd">                </div>
								<input type="hidden" id="dtp_input2" value="" /><br/>
							</div>
						</form></center>
					</div>
				</div>
				<!---- Start Widget ---->
				<br />
			</div>
		</div>
	</div>

	<footer>
		<div class="wrap-footer">
			<div class="container">
				<div class="row">
					<div class="col-md-4 col-footer footer-1">
						<div class="footer-heading"><h1><span style="color: #fff;">MYFRICA</span></h1></div>
						<div class="content">
							<p>Never missed any post published in our site. Subscribe to our daly newsletter now.</p>
							<strong>Email address:</strong>
							<form action="#" method="post">
								<input type="text" name="your-name" value="" size="40" placeholder="Your Email" />
								<input type="submit" value="SUBSCRIBE" class="btn btn-3" />
							</form>
						</div>
					</div>
					<div class="col-md-4 col-footer footer-2">
						<div class="footer-heading"><h4>Tags</h4></div>
						<div class="content">
							<a href="#">animals</a>
							<a href="#">cooking</a>
							<a href="#">countries</a>
							<a href="#">city</a>
							<a href="#">children</a>
							<a href="#">home</a>
							<a href="#">likes</a>
							<a href="#">photo</a>
							<a href="#">link</a>
							<a href="#">law</a>
							<a href="#">shopping</a>
							<a href="#">skate</a>
							<a href="#">scholl</a>
							<a href="#">video</a>
							<a href="#">travel</a>
							<a href="#">images</a>
							<a href="#">love</a>
							<a href="#">lists</a>
							<a href="#">makeup</a>
							<a href="#">media</a>
							<a href="#">password</a>
							<a href="#">pagination</a>
							<a href="#">wildlife</a>
						</div>
					</div>
					<div class="col-md-4 col-footer footer-3">
						<div class="footer-heading"><h4>Link List</h4></div>
						<div class="content">
							<ul>
								<li><a href="#">MOST VISITED COUNTRIES</a></li>
								<li><a href="#">5 PLACES THAT MAKE A GREAT HOLIDAY</a></li>
								<li><a href="#">PEBBLE TIME STEEL IS ON TRACK TO SHIP IN JULY</a></li>
								<li><a href="#">STARTUP COMPANY’S CO-FOUNDER TALKS ON HIS NEW PRODUCT</a></li>
							</ul>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="copy-right">
			<p>Copyright &copy; 2019.Company name All rights reserved.<a target="_blank" href="http://sc.chinaz.com/moban/">&#x7F51;&#x9875;&#x6A21;&#x677F;</a></p>
		</div>
	</footer>
	<!-- Footer -->
	
	<!-- JS -->
	
	<script type="text/javascript" src="js/bootstrap-datetimepicker.js" charset="UTF-8"></script>
	
	<script type="text/javascript">
    $('.form_datetime').datetimepicker({
        //language:  'fr',
        weekStart: 1,
        todayBtn:  1,
		autoclose: 1,
		todayHighlight: 1,
		startView: 2,
		forceParse: 0,
        showMeridian: 1
    });
	$('.form_date').datetimepicker({
        language:  'fr',
        weekStart: 1,
        todayBtn:  1,
		autoclose: 1,
		todayHighlight: 1,
		startView: 2,
		minView: 2,
		forceParse: 0
    });
	$('.form_time').datetimepicker({
        language:  'fr',
        weekStart: 1,
        todayBtn:  1,
		autoclose: 1,
		todayHighlight: 1,
		startView: 1,
		minView: 0,
		maxView: 1,
		forceParse: 0
    });
</script>
</body>
</html>
